<!DOCTYPE html>
<html lang="en">
<link th:href="@{/css/bootstrap.css}" rel="stylesheet">
<script src="/js/jquery-1.8.2.min.js"></script>
<script src="/js/npm.js"></script>
<script src="/layer/layer.js"></script>

<script>
  /*  function toadd(){
    $.post(
        "toAdd",
            $("#save").serialize(),
                function(obj){
                    if (obj){
                        layer.alert("成功");
                        //window.parent.location.reload();
                      //  parent.layer.close();
                    }else {
                        layer.alert("失败");
                    }
        },"json"
    )
    }*/
</script>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body >
<form id="save">
        <p>
            商品名称<input type="text" name="title">
        </p>
        <p>
            商品状态<input type="text" name="status">
        </p>

    <button onclick="toadd()" class="btn btn-prim">添加</button>
</table>
</form>
</body>
</html>